package com.querydsl.subquery.model;

import lombok.Data;
import lombok.experimental.FieldNameConstants;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;


/**
 * @Description  
 * @Author  MichaelZ
 * @Date 2021-10-25 
 */

@Data
@Entity
@DynamicInsert
@DynamicUpdate
@FieldNameConstants
@Table(name = "person")
public class Person  implements Serializable {

	private static final long serialVersionUID =  1766518042293749629L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name = "id",columnDefinition =  "Integer")
	private Integer id;

	@Column(name = "name",columnDefinition =  "String")
	private String name;

	@Column(name = "age",columnDefinition =  "Integer")
	private Integer age;

}
